.BillingHistory__card {
    width: 100%;
    height: '463px';
    border: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
    border-radius: 4px;
    background-color: var(--sys-center-channel-bg);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
    color: var(--sys-center-channel-color);
}

.CloudBillingHistoryModal {
    .CloudBillingHistoryModal__title {
        font-family: 'Metropolis';
        font-size: 22px;
        font-weight: semibold;
    }
}

.BillingHistory__cardHeader {
    display: flex;
    align-items: center;
    padding: 28px 32px 24px 32px;
    border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
}

.BillingHistory__cardHeaderText-top {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.BillingHistory__cardHeaderText-bottom {
    font-size: 14px;
    line-height: 20px;
}

.BillingHistory__cardBody {
    padding: 48px;
}

.BillingHistory__noHistory {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.BillingHistory__noHistory-message {
    margin-top: 24px;
    color: var(--sys-center-channel-color);
    font-size: 14px;
    line-height: 20px;
}

.BillingHistory__noHistory-link {
    margin-top: 20px;
    color: var(--sys-button-bg);
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
}

.BillingHistory__noHistory-graphic {
    margin-top: 28px;
}

.BillingHistory__table {
    width: 100%;

    th,
    td {
        padding: 8px 12px;
    }
}

.BillingHistory__table-header {
    border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.16);
    background: rgba(var(--sys-center-channel-color-rgb), 0.08);
    font-weight: 600;
    line-height: 16px;

    &:last-child {
        border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);
    }
}

.BillingHistory__table-row {
    border-bottom: 1px solid rgba(var(--sys-center-channel-color-rgb), 0.08);

    &:hover {
        cursor: pointer;
    }

    &:nth-child(odd) {
        background: rgba(var(--sys-center-channel-color-rgb), 0.04);
    }
}

.BillingHistory__table-bottomDesc {
    margin-top: 4px;
    color: rgba(var(--sys-center-channel-color-rgb), 0.75);
    font-size: 12px;
    line-height: 16px;
}

.BillingHistory__table-headerTotal {
    text-align: left;
}

.BillingHistory__table-total {
    font-weight: 600;
    text-align: left;
}

.BillingHistory__spinner {
    margin: auto;
    text-align: center;
}

.BillingHistory__paymentStatus {
    color: var(--sys-online-indicator);

    i {
        font-size: 14.4px;
        line-height: 17px;

        &::before {
            margin: 0;
        }
    }

    span {
        margin-left: 4px;
        font-weight: 600;
    }

    &.failed {
        color: var(--sys-error-text);
    }

    &.pending span {
        color: rgba(var(--sys-center-channel-color-rgb), 0.48);
    }
}

.BillingHistory__table-invoice a {
    &,
    &:link,
    &:visited,
    &:hover,
    &:focus,
    &:active {
        text-decoration: none;
    }
}

.BillingHistory__paging {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 4px;

    > span {
        margin-right: 8px;
    }

    button {
        height: 32px;
        padding: 7px;
        border: none;
        border-radius: 4px;
        margin-left: 4px;
        background: none;

        > i {
            font-size: 18px;

            &::before {
                margin: 0;
            }
        }

        &:disabled {
            opacity: 0.73;
        }

        &:hover:not(:disabled) {
            background: rgba(var(--sys-center-channel-color-rgb), 0.08);
        }
    }
}
